pAjax({
    url: '../php/login.php'
}).then(function (res) {
    let json = JSON.parse(res)
    const oBox = document.querySelector('.news_space')
    console.log(oBox)
    for (var i = 0; i < json.length; i++) {
        var str = `<li class="news_li">
        <a href="${json[i].href}" class="li_left">
            <h4>${json[i].date}</h4>
            <p>${json[i].month}</p>
        </a>
        <div class="li_right">
            <a href="${json[i].href}">${json[i].title}</a>
            <p>${json[i].info}</p>
        </div>
    </li>`
        oBox.innerHTML += str

    }
})